package cn.abdl.springsecurity.service;

import cn.abdl.springsecurity.dao.SysUserDao;
import cn.abdl.springsecurity.entity.dto.SysUserDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserService {
    private Logger logger = LoggerFactory.getLogger(SysUserService.class);

    @Autowired
    private SysUserDao sysUserDao;

    public SysUserDto getUserInfo(String userName){
      return sysUserDao.getUserByUsername(userName);
    };
}
